<html>
<head>
    <meta charset="UTF-8">
    <title>listusers</title>
    <link href="asset/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    <div class="row col-lg-9">
        <ol class="breadcrumb">
                <li><a href="#">Home</a></li>
                <li class="active"><a href="admin.php?c=video&m=listvideos">Inter</a></li>
                <li class="active"><a href="admin.php?c=user&m=listusers">Company</a></li>

        </ol>
<table class="table table-hover">
    <caption class="text-center"><strong>注册企业</strong>
    <small>共<?php
        echo count($data['users']);
        ?></small>人</caption>
    <thead class='text-center'>
    <tr>
        <th>企业名</th>
        <th>密码</th>
        <th>头像</th>
        <th>选项</th>
    </tr>
    </thead>
    <?php

   foreach($data['users'] as $row){
        echo "<tr>";
        echo "<td>".$row['uname']."</td>";
        echo "<td>".$row['password']."</td>";
        echo "<td><img class=\"img-circle\" width=\"70\" height=\"70\"src='photos/".$row['pic']."' alt='头像'> </td>";
        echo "<td><a class=\"btn btn-danger btn-sm btn-block\" href='admin.php?c=user&m=deluser&uid=".$row['uid']."'>删除</a>

    <a class=\"btn btn-default btn-sm btn-block\" href='admin.php?c=user&m=edituser&uid=".$row['uid']."'>修改</a></td>";

        echo "</tr>";
    }
    echo "</table>";
    ?>
    <div>
        <p class="col-lg-3 col-lg-offset-9"><a class="btn btn-danger btn-sm btn-block" href="admin.php?c=user&m=reguser">添加企业</a></p>
    </div>
</body>
</html>